using System;
using System.Collections.Generic;
using System.Text;
using System.Xml.Serialization;

namespace XMIAddin.Xmi
{
    [XmlRoot("XMI")]
    public class XmiDocument
    {
        [XmlNamespaceDeclarations]
        public XmlSerializerNamespaces xmlns;

        [XmlElement("XMI.header")]
        public XmiHeader Header = new XmiHeader();

        [XmlElement("XMI.content")]
        public XmiContent Content = new XmiContent();

        [XmlAttribute("timestamp")]
        public DateTime TimeStamp = DateTime.Now;

        [XmlAttribute("xmi.version")]
        public string Version = "1.2";

        public XmiDocument()
        {
            xmlns = new XmlSerializerNamespaces();
            xmlns.Add("UML", "org.omg.xmi.namespace.UML");
            xmlns.Add("UML2", "org.omg.xmi.namespace.UML2");
        }
    }
}
